import { MiddlewareConsumer, Module, NestModule } from '@nestjs/common';
import { UserActivityLoggerMiddleware } from '../../middlewares/user-activity-logger.middleware';
import { GeetestController } from './controllers/geetest.controller';

@Module({
  imports: [],
  controllers: [GeetestController],
  providers: [],
  exports: []
})
export class GeetestModule implements NestModule {
  configure(consumer: MiddlewareConsumer) {
    consumer.apply(UserActivityLoggerMiddleware).forRoutes(GeetestController);
  }
}
